import os

res = os.popen("ls -al")

dir = res.read()

print(dir)
